package com.yazi.mxz.common.db.dao;

import com.yazi.mxz.common.entity.beans.MemberRole;

import com.myframework.smhj.hibernate.dao.Dao;

public interface MemberRoleDao extends Dao<MemberRole>{
	
	/**
	 * 删除用户与企业关联的角色
	 * @param memberId
	 * @param companyId
	 * @return
	 */
	int deleteCompanyRolesForMember(long memberId, long companyId);

	/**
	 * 删除用户与店铺关联的角色
	 * @param memberId
	 * @param storeId
	 * @return
	 */
	int deleteStoreRolesForMember(long memberId, long storeId);
	
}
